package com.board.form;
//商家查询订单
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("商家查询订单参数对象")
public class StoreFindOrderForm {
    @ApiModelProperty("查询的订单类型")
    @NotNull(message = "订单类型不能为空")
    private Integer orderType;
    @ApiModelProperty("查询的菜品名字")
    private String foodName;
    @ApiModelProperty("页码")
    @Min(value = 1,message = "页码不能小于1")
    private Integer pageNum;
    @ApiModelProperty("每页条数")
    @Min(value = 1,message = "每页条数不能小于1")
    @Max(value = 100,message = "每页条数不能大于100")
    private Integer pageSize;
}
